﻿<%@ page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="flowpage" uri="/flowpage/tld/FlowPage.tld"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%--
*
* 创建人：薛兰 
* 创建时间：2011-07-15 16:48:37 
* 描述： 文档库列表
*
--%>
<html>
	<head>
		<title>附件</title>

		<flowpage:header />
	</head>
	<link rel="stylesheet" type="text/css"
		href="<%=basePath%>dhtmlxVault/codebase/dhtmlxvault.css" />

	<script language="JavaScript" type="text/javascript"
		src="<%=basePath%>dhtmlxVault/codebase/dhtmlxvault.js"></script>

	<script language="JavaScript" type="text/javascript">
        var vault = null;
        
		 <%-- 薛兰 2011-07-20 16:48:37 上传文档--%>
		 $(function(){
		 
		  <%--		   薛兰 2011-07-20 13:48:37 上传文件区域--%>
		 	vault = new dhtmlXVaultObject();
		 	vault.setImagePath("codebase/imgs/");
            vault.setServerHandlers("UploadHandler.jsp", "GetInfoHandler.jsp", "GetIdHandler.jsp");
            vault.create("vault1");
            vault.setModelValue("${modelValue}");//所属模块
            vault.setModelRecordId("${modelRecordId}");//所属模块中的某条记录的主键
           	vault.setFileExtensionList("${fileExtensionStr}");//文件后缀类型
          	vault.setSaveFilePath("${saveFilePath}");//文件保存路径
          	vault.copyFileType('image');
            <%--		   薛兰 2011-07-20 13:48:37 文件所属类型--%>
			$('#fileType').combobox({
		        url:'<%=basePath%>codeMapAction.do?method=getCodeMapFilterValueAction&indexId=fileType&fileExtensionStr=${fileExtensionStr}',
				valueField:'id',
				textField:'text',
				onSelect:function(fileTypeRecord){  
					vault.copyFileType(fileTypeRecord.id);
				}
			});
		    $('#fileType').combobox('setValue','image');
	    });
	    function closeWinUploadFile()
		{	
			parent.closeWinUploadFile();
		}

    </script>

	<style>
	body {font-size:12px;background-color:#eceef4;}
	.{font-family:arial;font-size:12px}
	h1 {cursor:hand;font-size:16px;margin-left:3px;line-height:10px}
    </style>

	<body id="aaaa">
		<flowpage:container>
		</flowpage:container>
		<flowpage:filed label="文件所属类型" noborder="true"  required="true">
				<select id="fileType" class="easyui-combobox" name="fileType"
					style="width:220px;" required="true"></select>
		</flowpage:filed>
		<br/><br/>
		<div id="vault1">
		</div>


	</body>
</html>
